import { IBaseResponse } from '@/models/response.interface';
import { ITenant } from '@/models/user.interface';

import http from './http';

export const getTenant = (domain: string) => {
  return http.get<IBaseResponse<ITenant>>(`/api/blade-system/tenant/info?domain=${domain}`);
};

export const logout = () => http.get('/api/blade-auth/oauth/logout');

// export const getBottomMenu = params => get(`${url}/api/raysdata-tenant/site/pageConfig/companyInfo`, params);

// export const getSearchList = params => get(`${url}/searchList`, params);

// /**
//  *
//  * @param {string} dataName
//  */
// export const getHomeCustomData = async dataName => {
//   const params = {
//     dataName
//   };
//   const { data } = await get(`${url}/api/raysdata-tenant/site/pageConfig/customData`, params);
//   return JSON.parse(data.data.data);
// }
